package com.kcloud.commons.entity.control;

import com.kcloud.commons.entity.core.StandardAttribute;
import lombok.Data;

/**
 * 操作
 */
@Data
public class Operation implements StandardAttribute {
    private String optCode; // 操作编码
    private String optName; // 操作名称
    private String optUrl; // 操作地址
    private String optMethod; // 操作方法
    private String icon;// 操作图标
    private Boolean checked;//选中状态

    @Override
    public void setTitle(String title) {
        this.optName = title;
    }

    @Override
    public void setKey(String key) {
        this.optCode = key;
    }

    @Override
    public String getTitle() {
        return getOptName();
    }

    @Override
    public String getKey() {
        return getOptCode();
    }
}